CUDA_INSTALL_PATH ?= /opt/cuda
CUDA_SDK_PATH ?= /opt/cuda-sdk/

NVCC    := $(CUDA_INSTALL_PATH)/bin/nvcc
NVCCFLAGS := --ptxas-options=-v 

LIBPATH   := -L$(CUDA_SDK_PATH)/lib64 

LIBS    := -lcutil
INCLUDES  +=  -I$(CUDA_INSTALL_PATH)/include -I$(CUDA_SDK_PATH)/C/common/inc

all:
	g++ bayesian12.cc -c 
	$(NVCC) bayesian12.o cudaHost.cu  $(NVCCFLAGS) $(LIBPATH) $(LIBS) $(INCLUDES) -lgsl -lgslcblas -lpthread -o Bayesian --gpu-architecture sm_13 


clean:
	rm Bayesian 
	rm bayesian12.o   
	rm *txt    
